﻿/*------------------------------------------------
// File Description: ObaInspect DataBase Entity
// Author:			 Crane
// Create Time:		 2020-06-20 14:12:09
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// OBA检测
    /// </summary>
    [Table(nameof(ObaInspect))]
    public class ObaInspect : BaseEntity
    {
        private string _orderNo = string.Empty;
        private string _obeNo;
        private string _innerOrderNo;

        #region Public Property

        ///<Summary>
        /// OBA检测单号
        ///</Summary>
        public string ObaNo
        {
            get { return string.IsNullOrWhiteSpace(_obeNo) ? string.Empty : _obeNo; }
            set { _obeNo = value; }
        }

        ///<Summary>
        /// 内部订单号
        ///</Summary>
        public string InnerOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_innerOrderNo) ? string.Empty : _innerOrderNo; }
            set { _innerOrderNo = value; }
        }

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// Status
        ///</Summary>
        public Enum.ObaStatus Status { get; set; }

        ///<Summary>
        /// FinishTime
        ///</Summary>
        public DateTime? FinishTime { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// OBA检测
        /// </summary>
        public virtual DbSet<ObaInspect> ObaInspects { get; set; }
    }
}